package com.manager.entity;

public class Petdetails {
    private Integer petid;

    private String petname;

    private String petphotopath;

    private Boolean gender;

    private Integer age;

    private String health;

    private String species;

    /*更新宠物信息。*/
    public Petdetails(Integer petid, String petname, String petphotopath, String health) {
        this.petid = petid;
        this.petname = petname;
        this.petphotopath = petphotopath;
        this.health = health;
    }

    //全体的构造，都需要。【只有photo可以为空。】
    public Petdetails(Integer petid, String petname, String petphotopath, Boolean gender, Integer age, String health, String species) {
        this.petid = petid;
        this.petname = petname;
        this.petphotopath = petphotopath;
        this.gender = gender;
        this.age = age;
        this.health = health;
        this.species = species;
    }

    public Integer getPetid() {
        return petid;
    }

    public void setPetid(Integer petid) {
        this.petid = petid;
    }

    public String getPetname() {
        return petname;
    }

    public void setPetname(String petname) {
        this.petname = petname == null ? null : petname.trim();
    }

    public String getPetphotopath() {
        return petphotopath;
    }

    public void setPetphotopath(String petphotopath) {
        this.petphotopath = petphotopath == null ? null : petphotopath.trim();
    }

    public Boolean getGender() {
        return gender;
    }

    public void setGender(Boolean gender) {
        this.gender = gender;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getHealth() {
        return health;
    }

    public void setHealth(String health) {
        this.health = health == null ? null : health.trim();
    }

    public String getSpecies() {
        return species;
    }

    public void setSpecies(String species) {
        this.species = species == null ? null : species.trim();
    }
}